//Luokasta cPot perityn Yukawan potentiaalin toteutus
//
//Joonas Koskinen
//Pro Gradu Työ
//Jyväskylän Yliopisto

#include "cYukawa.h"

Yukawa::Yukawa() {
	setName("Yukawa Potential");
	setUniverse(25.0);
	setWidth(getUniverse());
	setPotLeft(0.0);
	setPotRight(getUniverse());
	setFx(getUniverse());
	setTx(0.0);
        setUniLeft(0.0);
        setUniRight(getUniverse());
	setMinEnergy(0.0);
	//filter[activefilter]->calculate(this);
}

double Yukawa::getPotentialValueAt(double x) {
	return -1*(exp(-x))/x;
}

Yukawa::~Yukawa(){}
